package com.atguigu.spring.bean;

import java.util.Map;

/**
 * @author wk
 * @create 2021-06-01 16:13
 */
public class Student {
    private Integer sid;
    private String Sname;
    private Integer age;
    private String sex;
    private Map<String,Teacher> teacherMap;

    public Student() {
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", Sname='" + Sname + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", teacherMap=" + teacherMap +
                '}';
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSname() {
        return Sname;
    }

    public void setSname(String sname) {
        Sname = sname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Map<String, Teacher> getTeacherMap() {
        return teacherMap;
    }

    public void setTeacherMap(Map<String, Teacher> teacherMap) {
        this.teacherMap = teacherMap;
    }

    public Student(Integer sid, String sname, Integer age, String sex, Map<String, Teacher> teacherMap) {
        this.sid = sid;
        Sname = sname;
        this.age = age;
        this.sex = sex;
        this.teacherMap = teacherMap;
    }
}
